<!DOCTYPE html>
<html >
<head>
<meta charset="utf-8">
<title>体检预约信息</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="css/mui.css">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/weui.css">
<script type="text/javascript" src="js/utile.js"></script>
 <script type="text/javascript" src="js/jquery-2.0.0.min.js"></script>
        <script type="text/javascript">
$(document).ready(function(){
  $(".btInp").mousedown(function(){
    $(this).css("border","1px solid #30a5ff");
  });
   $(".btInp").mouseout(function(){
    $(this).css("border","1px solid #c9c9c9");
  });
   var url = getURL() + "/mobile/report/reports?start=0&length=99";
	  var pram = {};
	  $.ajax({
		  type: 'POST',
		  url: url,
		  data: pram,
		  success: function(data){
			  data;
			  for(var i=0;i<data.data.length;i++){
				  var supp = data.data[i];
				  //var str = '<tr><td width="25%">预约日期</td><td width="75%">'+ supp.reservString+'<a onclick="report('+ supp.proId+",'"+ supp.idenCardNum+ "'" +')" class="weui_btn weui_btn_mini weui_btn_plain_blue fr mt10">下载</a></td></tr><tr><td>体检门店</td><td>'+ supp.suppName+'</td></tr><tr><td>体检套餐</td><td>'+ supp.comboName+'</td></tr><tr><td>报告上传日期</td><td>'+ supp.suppName+'</td></tr>';
				  var str = '<tr><td width="25%">预约日期</td><td width="75%">'+ supp.reservString+'<a onclick="report('+ supp.orderId+",'"+ supp.idenCardNum+ "'" +')" class="weui_btn weui_btn_mini weui_btn_plain_blue fr mt10">下载</a></td></tr><tr><td>体检门店</td><td>'+ supp.suppName+'</td></tr><tr><td>体检套餐</td><td>'+ supp.comboName+'</td></tr><tr><td>报告上传日期</td><td>'+ supp.suppName+'</td></tr>';
				  $(".supp").append(str);
			  }
		  },
		  dataType: "json"
		});
});

function report(orderId, idenCardNum){
	//var url = getURL() + "/file/report/"+projectId+"/"+idenCardNum;
	var url = getURL() + "/file/report/"+orderId;
	window.location.href=url;
// 	window.open(url);
}
</script>
</head>

<body >
<header id="header" class="mui-bar mui-bar-nav"> <a onclick="history.go(-1)" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color:#fff;"></a>
  <h1 class="mui-title">体检报告</h1>
</header>
<div class="container" >

  
  
 <div>
 <div class="infTit fl">体检预约信息</div>
  
<div class="clear"></div>
  <table width="100%" border="0" class="baseTable supp">

  
</table>

 </div> 

</div>
</body>
</html>